package com.lbtc.service;

import com.github.pagehelper.PageInfo;
import com.lbtc.domian.Product;
import com.lbtc.exception.LbtcMallException;
import com.lbtc.request.AddProductReq;
import com.lbtc.request.ProductListReq;
import com.lbtc.request.UpdateProductReq;

public interface ProductService {
    void add(AddProductReq addProductReq) throws LbtcMallException;

    void update(UpdateProductReq updateProductReq) throws LbtcMallException;

    void delete(Integer id) throws LbtcMallException;

    void batchUpdateSellStatus(Integer[] ids, Integer sellStatus);

    PageInfo listForAdmin(Integer pageNum, Integer pageSize);

    Product detail(Integer id);

    PageInfo list(ProductListReq productListReq);
}
